Optimal. Leaf size=134 \[ \frac {2 a^2 (6 A+5 B) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{15 d \sqrt {a \cos (c+d x)+a}}+\frac {2 a^2 (18 A+25 B) \sin (c+d x) \sqrt {\sec (c+d x)}}{15 d \sqrt {a \cos (c+d x)+a}}+\frac {2 a A \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}{5 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.47, antiderivative size = 134, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {2961, 2975, 2980, 2771} \[ \frac {2 a^2 (6 A+5 B) \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{15 d \sqrt {a \cos (c+d x)+a}}+\frac {2 a^2 (18 A+25 B) \sin (c+d x) \sqrt {\sec (c+d x)}}{15 d \sqrt {a \cos (c+d x)+a}}+\frac {2 a A \sin (c+d x) \sec ^{\frac {5}{2}}(c+d x) \sqrt {a \cos (c+d x)+a}}{5 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2771
Rule 2961
Rule 2975
Rule 2980
Rubi steps
\begin {align*} \int (a+a \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \sec ^{\frac {7}{2}}(c+d x) \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+a \cos (c+d x))^{3/2} (A+B \cos (c+d x))}{\cos ^{\frac {7}{2}}(c+d x)} \, dx\\ &=\frac {2 a A \sqrt {a+a \cos (c+d x)} \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac {1}{5} \left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \cos (c+d x)} \left (\frac {1}{2} a (6 A+5 B)+\frac {1}{2} a (2 A+5 B) \cos (c+d x)\right )}{\cos ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a^2 (6 A+5 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 a A \sqrt {a+a \cos (c+d x)} \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}+\frac {1}{15} \left (a (18 A+25 B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+a \cos (c+d x)}}{\cos ^{\frac {3}{2}}(c+d x)} \, dx\\ &=\frac {2 a^2 (18 A+25 B) \sqrt {\sec (c+d x)} \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 a^2 (6 A+5 B) \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 a A \sqrt {a+a \cos (c+d x)} \sec ^{\frac {5}{2}}(c+d x) \sin (c+d x)}{5 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.33, size = 80, normalized size = 0.60 \[ \frac {a \tan \left (\frac {1}{2} (c+d x)\right ) \sec ^{\frac {5}{2}}(c+d x) \sqrt {a (\cos (c+d x)+1)} (2 (9 A+5 B) \cos (c+d x)+(18 A+25 B) \cos (2 (c+d x))+24 A+25 B)}{15 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.80, size = 88, normalized size = 0.66 \[ \frac {2 \, {\left ({\left (18 \, A + 25 \, B\right )} a \cos \left (d x + c\right )^{2} + {\left (9 \, A + 5 \, B\right )} a \cos \left (d x + c\right ) + 3 \, A a\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{15 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2}\right )} \sqrt {\cos \left (d x + c\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.45, size = 95, normalized size = 0.71 \[ -\frac {2 \left (-1+\cos \left (d x +c \right )\right ) \left (18 A \left (\cos ^{2}\left (d x +c \right )\right )+25 B \left (\cos ^{2}\left (d x +c \right )\right )+9 A \cos \left (d x +c \right )+5 B \cos \left (d x +c \right )+3 A \right ) \cos \left (d x +c \right ) \sqrt {a \left (1+\cos \left (d x +c \right )\right )}\, \left (\frac {1}{\cos \left (d x +c \right )}\right )^{\frac {7}{2}} a}{15 d \sin \left (d x +c \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.51, size = 436, normalized size = 3.25 \[ \frac {4 \, {\left (\frac {3 \, {\left (\frac {5 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {10 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {7 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {2 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}\right )} A {\left (\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 1\right )}^{2}}{{\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {7}{2}} {\left (-\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {7}{2}} {\left (\frac {2 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {\sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + 1\right )}} + \frac {5 \, {\left (\frac {3 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {8 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {7 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - \frac {2 \, \sqrt {2} a^{\frac {3}{2}} \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}}\right )} B {\left (\frac {\sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + 1\right )}^{2}}{{\left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {7}{2}} {\left (-\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}^{\frac {7}{2}} {\left (\frac {2 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {\sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + 1\right )}}\right )}}{15 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.44, size = 197, normalized size = 1.47 \[ \frac {2\,a\,\sqrt {a\,\left (\cos \left (c+d\,x\right )+1\right )}\,\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}\,\left (48\,A\,\sin \left (c+d\,x\right )+50\,B\,\sin \left (c+d\,x\right )+36\,A\,\sin \left (2\,c+2\,d\,x\right )+66\,A\,\sin \left (3\,c+3\,d\,x\right )+18\,A\,\sin \left (4\,c+4\,d\,x\right )+18\,A\,\sin \left (5\,c+5\,d\,x\right )+20\,B\,\sin \left (2\,c+2\,d\,x\right )+75\,B\,\sin \left (3\,c+3\,d\,x\right )+10\,B\,\sin \left (4\,c+4\,d\,x\right )+25\,B\,\sin \left (5\,c+5\,d\,x\right )\right )}{15\,d\,\left (10\,\cos \left (c+d\,x\right )+8\,\cos \left (2\,c+2\,d\,x\right )+5\,\cos \left (3\,c+3\,d\,x\right )+2\,\cos \left (4\,c+4\,d\,x\right )+\cos \left (5\,c+5\,d\,x\right )+6\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________